function resp = getSign(a, initialValue)
	if( sign(a) == 0 )
		resp = initialValue;
	else
		resp = sign(a);
	endif
endfunction